package com.hyh.prize.vo;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.lww.springcloudapi.entity.TabGgcardLog;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 刮刮卡信息表
 * </p>
 *
 * @author SHEN
 * @since 2021-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor //无参构造
@Accessors(chain = true) //链式编程
@ApiModel(value="TabGgcardInfo对象", description="刮刮卡信息表")
public class TabGgcardInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "卡序列号")
    private String cardno;

    @ApiModelProperty(value = "奖品等级（1-6)")
    private Integer prizelevel;

    @ApiModelProperty(value = "卡状态（00：未兑；10：已兑）")
    private String state;

    @ApiModelProperty(value = "状态时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    @JSONField(format = "yyyy-MM-dd")
    private Date statedate;

    @ApiModelProperty(value = "操作员")
    @TableField("OPTRID")
    private String optrid;

    @ApiModelProperty(value = "受理点")
    @TableField("ACPTSITEID")
        private String acptsiteid;

    @ApiModelProperty(value = "操作时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date optrdate;

    @ApiModelProperty(value = "流水号")
    @TableField("TRANSN")
    private String transn;

    @TableLogic
    private Integer deleted;


}
